package com.example.chat.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("tb_mate")
public class Mate {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String adminId = "";//创建匹配用户id
    private String userId = "";//加入用户id
    private int status = 1;//1待匹配 2聊天中 3已结束 4已超时 5已取消
    private long expireTime;//过期时间
    private long createTime;//创建时间
    private String channel = "";//频道号
    private int type;//1视频聊天 2图文聊天
    private String unLoginAdminId = "";//创建匹配未登录用户id {"id":"","ip":""}
    private String unLoginUserId = "[]";//加入未登录用户id[{"id":"","ip":""},...]
    private String screenList = "[]";//截图列表
}
